/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package upeu.cepre.model;

import java.io.Serializable;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Elvis Zangetsu
 */
@Entity
@Table(name = "examenes")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Examenes.findAll", query = "SELECT e FROM Examenes e"),
    @NamedQuery(name = "Examenes.findByIdExamenes", query = "SELECT e FROM Examenes e WHERE e.idExamenes = :idExamenes"),
    @NamedQuery(name = "Examenes.findByNumSemana", query = "SELECT e FROM Examenes e WHERE e.numSemana = :numSemana"),
    @NamedQuery(name = "Examenes.findByFechaExamen", query = "SELECT e FROM Examenes e WHERE e.fechaExamen = :fechaExamen"),
    @NamedQuery(name = "Examenes.findByIdPeriodo", query = "SELECT e FROM Examenes e WHERE e.idPeriodo = :idPeriodo")})
public class Examenes implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "idExamenes")
    private String idExamenes;
    @Column(name = "numSemana")
    private String numSemana;
    @Column(name = "fechaExamen")
    private String fechaExamen;
    @Column(name = "idPeriodo")
    private String idPeriodo;

    public Examenes() {
    }

    public Examenes(String idExamenes) {
        this.idExamenes = idExamenes;
    }

    public String getIdExamenes() {
        return idExamenes;
    }

    public void setIdExamenes(String idExamenes) {
        this.idExamenes = idExamenes;
    }

    public String getNumSemana() {
        return numSemana;
    }

    public void setNumSemana(String numSemana) {
        this.numSemana = numSemana;
    }

    public String getFechaExamen() {
        return fechaExamen;
    }

    public void setFechaExamen(String fechaExamen) {
        this.fechaExamen = fechaExamen;
    }

    public String getIdPeriodo() {
        return idPeriodo;
    }

    public void setIdPeriodo(String idPeriodo) {
        this.idPeriodo = idPeriodo;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idExamenes != null ? idExamenes.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Examenes)) {
            return false;
        }
        Examenes other = (Examenes) object;
        if ((this.idExamenes == null && other.idExamenes != null) || (this.idExamenes != null && !this.idExamenes.equals(other.idExamenes))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "upeu.cepre.model.Examenes[ idExamenes=" + idExamenes + " ]";
    }
    
}
